package com.ishadows.notebook.model;

import java.util.List;

import com.activeandroid.Model;
import com.activeandroid.annotation.Column;
import com.activeandroid.annotation.Table;
import com.activeandroid.query.Select;
@Table(name="note_dir")
public class NoteDir extends Model{
	@Column(name="name")
	private String name;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	public static List<NoteDir> getNoteDirs(){
		List<NoteDir> dirs =new Select().from(NoteDir.class).orderBy("date asc").execute();
		return dirs;
	}
	
}
